﻿<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>CMS - 后台管理系统</title>
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="/resource/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <link href="/resource/css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <link href="/resource/css/iCheck/all.css" rel="stylesheet" type="text/css" />
    <link href="/resource/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="row">
    <div class="col-md-12">
    	<h1 class="panel-heading">申报审批</h1>
    </div>
</div>
<section class="panel">	
   <div class="panel-body">
          <div id="baseinfo">
			<form class="col s12" id="form1" th:object="${applyInfo}" th:action="@{/admin/applyInfo/edit}" onsubmit="return validateForm();" method="post">
				<input name="applyId" id="applyId" type="hidden" th:value="*{applyId}" />
				<div class="form-group form-control-medium">
					<label for="applyUser">申报姓名：</label>
					<input id="applyUser" name="applyUser" type="text" class="form-control" th:value="*{applyUser}">
				</div>
				<div class="form-group form-control-medium">
					<label for="applyMobile">申报电话：</label>
					<input id="applyMobile" name="applyMobile" type="text" class="form-control" th:value="*{applyMobile}">
				</div>
				<div class="form-group form-control-medium">
					<label for="applyTitle">申报事项：</label>
					<input id="applyTitle" name="applyTitle" type="text" class="form-control" th:value="*{applyTitle}">
				</div>
				<div class="form-group form-control-medium">
					<label for="applyState">审批结果：</label>
					<select id="applyState" name="applyState" class="form-control">
						<option value="通过">通过</option>
						<option value="不通过">不通过</option>
					</select>
				</div>
				<div class="form-group form-control-medium">
					<label for="applyRejectInfo">审批内容：</label>
					<textarea  id="applyRejectInfo" name="applyRejectInfo" class="form-control"></textarea>
				</div>
				
				<div class="form-btn-group-left">
					<button type="submit" class="btn btn-info">确认审批</button>
				</div>
			</form>
		</div>
   </div>
</section>

<script src="/resource/js/jquery.min.js"></script>
<script src="/resource/js/coco-message/coco-message.js"></script>
<script>
	function validateForm(){
		/*
		var msgTitle = $("#msgTitle").val();
		var msgContent = $("#msgContent").val();
		if(msgTitle == null || msgTitle==''){
			cocoMessage.error("留言标题不能为空");
			return false;
		}
		if(msgContent == null || msgContent==''){
			cocoMessage.error("留言内容不能为空");
			return false;
		}
		*/
		return true;
	}
</script>
</body>
</html>
